package sgi.message;

public class Message implements java.io.Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String query;
	private int type;	//type of query - 1 for select,2 for insert.
	public static final int SELECT = 1;
	public static final int INSERT = 2;
	public static final int DISPLAY = 3;
	
	
	
	public Message (int t,String q)
	{
		query = q;
		type = t;
	}
	
	public String getQuery() {
		return query;
	}
	
	public int getType()
	{
		return type;
	}

}
